package net.zhengxinyun.performance.service.incentive;

import net.zhengxinyun.performance.App.dto.IncentiveDTO;
import net.zhengxinyun.performance.entity.IncentiveEntity;
import net.zhengxinyun.performance.filter.IncentiveFilter;
import net.zhengxinyun.performance.filter.IndexFilter;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Date: 2018/11/4 15:08
 */
public interface IncentiveService {

    String delete (IncentiveEntity incentiveEntity);

    String update(IncentiveEntity incentiveEntity);

    String insert(IncentiveEntity incentiveEntity);

    List<Map<String,Object>> query(IncentiveFilter incentiveFilter);

    List<IncentiveFilter> queryAll(IncentiveFilter filter);

    int queryForCount (IncentiveFilter incentiveFilter);

    List<IncentiveFilter> queryGroupType(String dateTime);

    List<IncentiveFilter> queryGroupMonth(String dateTime);

    String pass(IncentiveEntity incentiveEntity);

    String noPass(IncentiveEntity incentiveEntity);

    //List<Map<String,Object>> queryForAudit(IncentiveFilter filter);

    int queryForAuditCount(IncentiveFilter filter);

    HashMap<String,Object> indexIncentive(IndexFilter indexFilter);

    Double indexForScore(IndexFilter indexFilter);

    List<IncentiveDTO> typeScore(String year,String departCode );
    String onlyinsert(IncentiveEntity incentiveEntity);
}
